<div class="container">
    <div class="row">
        <div class="span12">
            <div id="alert-area">
                
            </div>
        </div>
    </div>
    <div class="row">
        <div id="show" class="span12">
            <div id="table">
            <?php $this->load->view('admin/view_guru/show'); ?>
            </div>
            <a href="<?php echo site_url() ?>admin/guru/input" class="btn btn-primary fancybox fancybox.iframe input">Input New</a>
        </div>
    </div>
</div>
<script type="text/javascript">
    function alertz (type, heading, message) {
        parent.$.fancybox.close();
        $.get('<?php echo site_url(); ?>admin/guru/show', function(data) {
            $('#table').html(data);
        });
        $("#alert-area").append($("<div class='alert-message alert alert-block " + type + " fade in' data-alert><a class='close' data-dismiss='alert' href='#'>&times;</a><h4 class='alert-heading'>"+ heading +"</h4><p> " + message + " </p></div>"));
        $(".alert-message").delay(1000).fadeOut("slow", function () { $(this).remove(); });
    }
</script>

